#include <bits/stdc++.h>
// 2025/02/26
// tag: 
// Author: Forever
using namespace std;

using int64 = int64_t;

signed main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int t;
    cin >> t;
    while (t--){
        int n, a, flag = 1;
        cin >> n;
        for (int i = 1; i <= n; i++)
            cin >> a, flag &= (a > 2 * max(i - 1, n - i));
        cout << (flag ? "YES" : "NO") << endl;
    }
    return 0;
}